/**
 *  Describe:
 *  Created by xjc on 2019/7/30
 */

// 源插件
import React, { PureComponent, Fragment } from 'react';

// 视图插件

// 外部组件
import Table from './Table';
import Loading from '@/components/Loading/Loading';
// css OR less预编译器

/**
 *  Describe:数据连接
 *  Created by xjc on 2019/5/15
 */

class StandardTablePro extends PureComponent {
  componentWillMount() {}

  /**
   *  Describe:当前状态
   *  Created by xjc on 2019/5/15
   */
  constructor(props) {
    super(props);
  }

  state = {};

  /**
   *  Describe:视图
   *  Created by xjc on 2019/5/15
   */

  render() {
    const {
      dataSource: { total, code, columns, title, titleTotal, showHeader, border, rowKey },
      rowSetKey,
      closeScroll,
      doubleClick,
      loadingTime,
    } = this.props;
    return (
      <div>
        {code === 1 ? (
          <div>
            <Table {...this.props} />
          </div>
        ) : (
          <Loading loadingTime={loadingTime}/>
        )}
      </div>
    );
  }

  componentDidMount() {}

  componentWillUnmount() {}
}

export default StandardTablePro;
